#! /bin/bash

menu=$(zenity --width 120 --height 320 --list \
  --title="Shutting down..." \
  --column 'Option'\
    Poweroff  \
    Reboot    \
    Suspend   \
    Logout)

case $menu in
    "Poweroff")   loginctl poweroff ;;
    "Reboot")     loginctl reboot ;;
    "Suspend")    i3lock | loginctl suspend ;;
    "Logout")     awesome-client "awesome.quit()";;
esac
